package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 专利信息列表对象 sys_patent
 * 
 * @author chen
 * @date 2023-07-30
 */
public class Patent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 专利id */
    private Long patentId;

    /** 专利号
 */
    @Excel(name = "专利号 ")
    private String patentNum;

    /** 专利名称 */
    @Excel(name = "专利名称")
    private String patentName;

    /** 专利状态（0正常 1停用） */
    @Excel(name = "专利状态", readConverterExp = "0=正常,1=停用")
    private String patentStatus;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    public void setPatentId(Long patentId) 
    {
        this.patentId = patentId;
    }

    public Long getPatentId() 
    {
        return patentId;
    }
    public void setPatentNum(String patentNum) 
    {
        this.patentNum = patentNum;
    }

    public String getPatentNum() 
    {
        return patentNum;
    }
    public void setPatentName(String patentName) 
    {
        this.patentName = patentName;
    }

    public String getPatentName() 
    {
        return patentName;
    }
    public void setPatentStatus(String patentStatus) 
    {
        this.patentStatus = patentStatus;
    }

    public String getPatentStatus() 
    {
        return patentStatus;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("patentId", getPatentId())
            .append("patentNum", getPatentNum())
            .append("patentName", getPatentName())
            .append("patentStatus", getPatentStatus())
            .append("publishTime", getPublishTime())
            .toString();
    }
}
